package org.devocean.groupbuying.web.frontend;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.devocean.groupbuying.domain.Explored;
import org.devocean.groupbuying.service.ExploredService;
import org.devocean.groupbuying.web.frontend.displaybeans.ExplorerBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = { "/{lang:[a-z]{2}}/" })
// @RequestMapping(value={"", "/{lang:[a-z]{2}}"})
public class ArticleController {

	@Autowired
	private ExploredService exploredService;

	@RequestMapping("how")
	public String how(Map<String, Object> map,
			@CookieValue("clientLanguage") String lang) {
		return "how";
	}

	@RequestMapping("about")
	public String about(Map<String, Object> map,
			@CookieValue("clientLanguage") String lang) {
		return "about";
	}
	
	@RequestMapping("termsOfUse")
	public String termsOfUse(){
		
		return "termsOfUse";
	}
	@RequestMapping("privacy-policy")
	public String privacyPolicy(){
		
		return "privacy-policy";
	}
}
